/**
 * Representations for all the valid command words for the game.
 * 
 * @author  Michael Kölling and David J. Barnes
 * @version 2011.08.09
 */
public enum CommandWord
{
    // A value for each command word, plus one for unrecognized
    // commands.

    GO("go"), QUIT("quit"), HELP("help"), BACK("back"), UNKNOWN("?"), LOOK("look"), EAT("eat"), ITEMS("items"), TAKE("take"), UNLOCK("unlock"), TELEPORT("teleport"), ATTACK("attack");
    
    private String commandWord;
    
    CommandWord(String commandWord)
    {
        this.commandWord = commandWord;
    }
    
    public String toString()
    { 
        return commandWord;
    }
}